package com.atguigu.gulimall.order.feign.fallback;

import com.atguigu.gulimall.order.feign.CartFeignService;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;

@Component
public class CartFeignServiceFallback implements CartFeignService {

    @Override
    public List<OrderItemVo> currentUserCartItems() {
        return new ArrayList<>();
    }
}
